package com.gamecauca.screen;

import java.util.Random;

import com.badlogic.gdx.Gdx;
import com.gamecauca.Assets;
import com.gamecauca.Settings;
import com.gamecauca.common.ActionResolver;
import com.gamecauca.common.GameConfig;

public class GameCauCa extends Game {
	public static final String TAG = "GameCauCa extends Game";
	boolean firstTimeCreate = true;
	public static Random rand ;

	public static ActionResolver actionResolver;
	
	
	public GameCauCa()
	{
		
	}
	
	public GameCauCa(ActionResolver resolver)
	{
		System.out.println("bangnt test");
		actionResolver = resolver;
	}
	
	

	@Override
	public Screen getStartScreen () {
		return new MainMenuScreen(this);
//		return new ChooseModeScreen(game,this);
//		return new GameScreen(this);
	}

	@Override
	public void create () {
		Settings.load();
		Assets.load();
//		GameConfig.load();
		rand =  new Random();
		rand.setSeed(System.currentTimeMillis());
		
		super.create();
	}
	public void setScreen (Screen newScreen) {
		if (screen != null) screen.dispose();
		screen = newScreen;
		if (screen != null) screen.present();
	}
	
	

}